function find(arr, callback) {
    for (var i = 0; i < arr.length; i++) {
        let res = callback(arr[i])
        if (res) {
            return arr[i]
        }
    }
    return -1
}